<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateJobCodeTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('job_code', function (Blueprint $table) {
            $table->increments('id');
            $table->string('job_code')->comment('职位标识');
            $table->string('job_code_desc')->comment('职位标识简述');
            $table->timestamps();
            $table->softDeletes();
            $table->unique('job_code');
            $table->engine = "InnoDB";
            $table->charset = "utf8mb4";
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('job_code');
    }
}
